//
// Created by Wirano on 2020/11/9.
//

#ifndef ANO_MAGPROCESS_H
#define ANO_MAGPROCESS_H

/* Includes ------------------------------------------------------------------*/
#include "Ano_FcData.h"
#include "Ano_Filter.h"
#include "Ano_Math.h"

/* Exported types ------------------------------------------------------------*/

typedef struct {
    uint8_t mag_CALIBRATE;
//	int16_t offset[VEC_XYZ];
//	float gain[VEC_XYZ];
    int16_t val[VEC_XYZ];

} _mag_cal_st;
extern _mag_cal_st mag;

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void Mag_Data_Deal_Task(uint8_t dT_ms, int16_t mag_in[], float z_vec_z, float gyro_deg_x, float gyro_deg_z);

#endif //ANO_MAGPROCESS_H
